<!DOCTYPE html>
<html lang="en">

<head>
    <title>栗豪 · Daily</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="description" content="栗小豪(lihao)的日常生活网站主页。我是一个22岁的前端工程师，爱生活，爱前端。" />
    <meta name="keywords" content="栗小豪，lihao，栗豪，栗小豪的日常生活，前端工程师，web前端，个人网站" />
    <meta name="author" content="栗小豪" />
    <meta property="og:title" content="栗豪 · Daily" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://www.lihao.fun/" />
    <meta property="og:description" content="我是一个22岁的前端工程师，爱生活，爱前端。" />
    <meta property="og:locale" content="zh-CN" />
    <meta property="og:locale:alternate" content="en-US" />
    <meta property="og:site_name" content="栗小豪的日常生活" />
    <meta name="weibo:webpage:create_at" content="2018-8-05 09:00:00" />
    <meta name="weibo:webpage:update_at" content="2018-8-05 09:00:00" />
    <link rel="apple-touch-icon-precomposed" href="/images/logo.png" />
    <link rel="shortcut icon" href="./images/logo.png" type="image/x-icon" />
    <link rel="icon" href="./images/logo.png" type="image/x-icon" />
</head>
<style>
    body {
        width: 100%;
        height: 100%;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    #iframe{
        padding: 0;
        margin: 0; 
    }
    #shouming{
        position:absolute;
        top: 50%;
        left: 50%;
        width: 40vw;
        height: 10vw;
        line-height: 10vw;
        text-align: center;
        color: #fff;
        font-size: 1vw;
        margin-left: -20vw;
        margin-top: -5vw;
        z-index: 99999;
        background: rgba(0, 0, 0, 0.2)
    }
    #shouming>a{
        color: #fff
    }
</style>

<body>
    <iframe src="" frameborder="0" width="100%" height="0" id="iframe"></iframe>
    <div id="shouming">游客你好，此网站正在建设，请移步到我的其他网站：
        <a href="http://www.lihao.fun:8080/">个人主页</a>
        <a href="http://www.lihao.fun:5125/">个人博客</a>
    </div>
    <script>
        window.onload = function () {
            var random = Math.floor((Math.random() * 25) + 1);
            document.getElementById('iframe').src = './html/bg' + random + '.html';
            document.getElementById('iframe').height = document.documentElement.clientHeight;
            
        }
        window.onresize = function () {
            document.getElementById('iframe').height = document.documentElement.clientHeight;
            if ((window.outerHeight - window.innerHeight) > 200){//判斷當前窗口內頁高度和窗口高度。
                window.close(); //關閉當前窗口()
			    window.location = "about:blank"; //將當前窗口跳轉置空白頁
            }
            if ((window.outerWidth - window.innerWidth) > 200){
                window.close();
			    window.location = "about:blank";
            }
        }

    </script>
</body>

</html>